<template>
  <div>
    <el-card class="page-tools">
      <el-row type="flex" justify="space-between" align="middle">
        <!-- 具名插槽 -->
        <el-col>
          <div v-if="showBefore" class="before">
            <i class="el-icon-info" />
            <slot name="before" />
          </div>
          <!-- <slot name="before" /> -->
        </el-col>
        <el-col>
          <el-row type="flex" justify="end">
            <slot name="after" />
          </el-row>
        </el-col>

      </el-row>

    </el-card>

  </div>
</template>

<script>
export default {
  props: { // 这里 是对象
    showBefore: {
      type: Boolean,
      default: false
    }
  }

}
</script>

<style lang='scss'>
.page-tools{
  margin: 10px 0;
}
</style>
